package com.qzsoft.zhjd.materiel.modules.materielsupplier.dto;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qzsoft.jeemis.common.annotation.Dict;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

/**
 * @ClassName MaterielSupplierImportDto
 * @Description 供应商导入
 * @author linhuawei
 * @since 2022-03-30
 */
@Data
public class MaterielSupplierImportDto {

    /**
     * 供应商
     */
    @Excel(name = "供应商", width = 40)
    private String name;

    /**
     * 统一社会信用代码
     */
    @Excel(name = "统一社会信用代码", width = 40)
    private String unifiedSocialCreditCode;

    /**
     * 注册资金
     */
    @Excel(name = "注册资金", width = 20, type = 10)
    private BigDecimal registeredCapital;

    /**
     * 单位性质
     */
    private String unitNature;

    /**
     * 单位性质
     */
    @Excel(name = "单位性质", width = 20)
    @Dict(dictCodeId = "COMPANY_TYPE", dicCodeField = "unitNature")
    private String unitNatureLabel;

    /**
     * 成立日期
     */
    @Excel(name = "成立日期", width = 20, exportFormat = "yyyy-MM-dd")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date buildDate;

    /**
     * 资质等级
     */
    private String qualificationLevel;

    /**
     * 资质等级
     */
    @Excel(name = "资质等级", width = 20)
    @Dict(dictCodeId = "COMPANY_QUALIFICATION", dicCodeField = "qualificationLevel")
    private String qualificationLevelLabel;

    /**
     * 纳税人类别
     */
    private String taxpayerCategory;

    /**
     * 纳税人类别
     */
    @Excel(name = "纳税人类别", width = 20)
    @Dict(dictCodeId = "TAX_PAYER_CATEGORY", dicCodeField = "taxpayerCategory")
    private String taxpayerCategoryLabel;

    /**
     * 评价等级
     */
    private String evaluationGrade;

    /**
     * 评价等级
     */
    @Excel(name = "评价等级", width = 20)
    @Dict(dictCodeId = "COMPANY_EVALUATION_GRADE", dicCodeField = "evaluationGrade")
    private String evaluationGradeLabel;

    /**
     * 评价状态
     */
    private String evaluationStatus;

    /**
     * 评价状态
     */
    @Excel(name = "评价状态", width = 20)
    @Dict(dictCodeId = "COMPANY_EVALUATION_STATUS", dicCodeField = "evaluationStatus")
    private String evaluationStatusLabel;

    /**
     * 经营范围
     */
    @Excel(name = "经营范围", width = 40)
    private String businessScope;

    /**
     * 是否启用
     */
    private Integer enable;

    /**
     * 导入结果
     */
    private boolean success;

    /**
     * 错误信息
     */
    private String errorMesg;

}
